package com.qft.rnlearn;

import android.os.Bundle;
import android.widget.Toast;

import com.elf.reactnative.ReactActivity;
import com.elf.reactnative.ReactAppInfo;


public class MainActivity extends ReactActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected ReactAppInfo getJsBundleInfo() {
        ReactAppInfo info = new ReactAppInfo();
        info.id = "home";
        info.name = "home";
        info.version = "0.0.1";
        info.url = "http://shuijinglingsos.gitee.io/blog/RnLearnServer/home.bundle";
        info.mainComponentName = "home";
        return info;

//        return null;
    }

    private void toast(String msg) {
        Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
    }

}
